package com.zy.mapper;

import com.zy.bean.TPermissionMenu;
import com.zy.bean.TPermissionMenuExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface TPermissionMenuMapper {
    long countByExample(TPermissionMenuExample example);

    int deleteByExample(TPermissionMenuExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TPermissionMenuExample record);

    int insertSelective(TPermissionMenu record);

    List<TPermissionMenu> selectByExample(TPermissionMenuExample example);

    TPermissionMenu selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TPermissionMenu record, @Param("example") TPermissionMenuExample example);

    int updateByExample(@Param("record") TPermissionMenu record, @Param("example") TPermissionMenuExample example);

    int updateByPrimaryKeySelective(TPermissionMenu record);

    int updateByPrimaryKey(TPermissionMenu record);

 /**
 *@Author: zy 690748807@qq.com
 * @Param:  --注意接受的参数要和前端对应上-var data = {mid:tempMenuid,perIds:idsStr};
 * @return:
 * @Date: 2024/1/21
 * @Description:   菜单列表添加权限
  *  int savePermissionToMenu(Integer[] perIds, String menuid);
  *    * @Param:var data = {mid:tempMenuid,perIds:idsStr};Integer[] roleId, String adminId
  *
 */
    int savePermissionToMenu(@Param("idsStr") Integer[] perIds,@Param("tempMenuid") Integer menuId);
}